package com.luoxiang.lib_common.utils

/**
 * @Description TODO
 * @systemUser Administrator
 * @Author sss
 * @Date 08-31-2022 周三 13:58
 */
object NumTransferUtils {

    fun transfer(num: String): String {
        var numStr = num
        try {
            val origin = num.toInt()
            if (origin >= 10000f) {
                numStr = (origin / 1000f).toString() + "w"
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
        return numStr
    }
}